package xyz.ag.Beans;

public final class User {
	private Integer userID;//用户id
	private String userName;//用户名
	private String userPassword;//用户密码
	private String userSex;//用户性别
	private String userPhoneNumber;//用户电话号码
	private String userAddress;//用户联系方式
	private Integer userAccount_ID;//用户账户
	public User() {
		// TODO 自动生成的构造函数存根
	}
	
	

	public User(Builder builder) {
		super();
		this.userID = builder.userID;
		this.userName = builder.userName;
		this.userPassword = builder.userPassword;
		this.userSex = builder.userSex;
		this.userPhoneNumber = builder.userPhoneNumber;
		this.userAddress = builder.userAddress;
	}
	


	public static final class Builder {
       /*定义属性*/

		private Integer userID;//用户id
		private String userName;//用户名
		private String userPassword;//用户密码
		private String userSex;//用户性别
		private String userPhoneNumber;//用户电话号码
		private String userAddress;//用户联系方式
		private Integer userAccount_ID;//用户账户
		
		
		
		
         public Builder() {
			super();
			this.userID=0;
			this.userName = "";
			this.userPassword = "";
			this.userSex = "";
			this.userPhoneNumber = "";
			this.userAddress = "";
			this.userAccount_ID=0;
		}
		/**
         * 实际属性配置方法
         * @param carBody
         * @return
         */
        public Builder userName(String userName) {
            this.userName = userName;
            return this;
        }
        public Builder userPassword(String userPassword) {
        	this.userPassword = userPassword;
        	return this;
        }
        public Builder userSex(String userSex) {
        	this.userSex = userSex;
        	return this;
        }
        public Builder userPhoneNumber(String userPhoneNumber) {
        	this.userPhoneNumber = userPhoneNumber;
        	return this;
        }
        public Builder userAddress(String userAddress) {
        	this.userAddress = userAddress;
        	return this;
        }
        public Builder userAccount_ID(Integer userAccount_ID) {
        	this.userAccount_ID = userAccount_ID;
        	return this;
        }
        public Builder userID(Integer userID) {
        	this.userID = userID;
        	return this;
        }
        
        /**
         * 最后创造出实体car
         * @return
         */
        public User build() {
            return new User(this);
        }
    }





	public String getUserName() {
		return userName;
	}



	public void setUserName(String userName) {
		this.userName = userName;
	}



	public String getUserPassword() {
		return userPassword;
	}



	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}



	public String getUserSex() {
		return userSex;
	}



	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}



	public String getUserPhoneNumber() {
		return userPhoneNumber;
	}



	public void setUserPhoneNumber(String userPhoneNumber) {
		this.userPhoneNumber = userPhoneNumber;
	}



	public String getUserAddress() {
		return userAddress;
	}



	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}



	public Integer getUserID() {
		return userID;
	}



	public void setUserID(Integer userID) {
		this.userID = userID;
	}



	public Integer getUserAccount_ID() {
		return userAccount_ID;
	}



	public void setUserAccount_ID(Integer userAccount_ID) {
		this.userAccount_ID = userAccount_ID;
	}
}
